package com.globallogic.dailyplanner.dto;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="daily_plan")
public class DailyPlan implements Serializable{
	private static final long serialVersionUID = 2745939840034410254L;

	@Id
	@GeneratedValue
	private int id;
	
	@ManyToOne
	private User user;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Calendar date;
	
	@Column(nullable=false)
	private String activity;
	
	@Column(nullable=false)
	private String estimateDuration;
	
	private String actualDuration;
	private String comment;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Calendar getCalendar() {
		return date;
	}
	public void setCalendar(Calendar calendar) {
		this.date = calendar;
	}
	public String getActivity() {
		return activity;
	}
	public void setActivity(String activity) {
		this.activity = activity;
	}
	public String getEstimateDuration() {
		return estimateDuration;
	}
	public void setEstimateDuration(String estimateDuration) {
		this.estimateDuration = estimateDuration;
	}
	public String getActualDuration() {
		return actualDuration;
	}
	public void setActualDuration(String actualDuration) {
		this.actualDuration = actualDuration;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
}
